package com.dd.cloud.user.req.classroom;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.dd.cloud.common.annotate.validation.Desc;
import com.dd.cloud.common.annotate.validation.Name;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 媒体小节说明表
 * </p>
 *
 * @author czg
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ImportMediaSectionReq implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 小节标题
     */
    @Name(begin = "小节名")
    @Excel(name = "*视频名称", width = 20, orderNum = "1")
    private String name;

    /**
     * 小节分类
     */
    @NotBlank(message = "视频类型不能为空")
    @Excel(name = "*视频类型", width = 20, orderNum = "2")
    private String classify;

    /**
     * 主题
     */
    @Desc(begin = "备注", required = false)
    @Excel(name = "备注", width = 20, orderNum = "3")
    private String remarks;

    /**
     * 排序
     */
    @Excel(name = "排序", width = 20, orderNum = "0")
    private Integer sort;

    /**
     * 类型id
     */
    private Integer classifyId;
}
